<?php

include("../models/webconfig.php");
include("../models/class.connection.php");
include("../models/entities/class.GroupEntity.php");
include("../models/repositories/class.GroupRepository.php");
$groupRepository = new GroupRepository();

if (isset($_POST['id'])) {
    if ($groupRepository->DeleteGroup($_POST['id'])) {
        echo "1";
    } else {
        echo "0";
    }
}else
    echo "0";
?>
